package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsRole;

import java.util.List;
import java.util.Set;

public interface DtsRolesService  {

    Set<String> findByRoleIds(Integer[] roleIds);

    List<DtsRole> findAll();

    IPage<DtsRole> selectByPage(Integer page, Integer limit, String name, String sort, String order);

    DtsRole insert(DtsRole role);

    Boolean checkRole(String name);


    DtsRole updateById(DtsRole role);

    void delete(Integer id);

    boolean checkIsSuperManager(Integer roleId);

    void UpdatePermissions(Integer roleId, List<String> permissions);

}
